package bilby;

/**
 * code：unique
 * aliveStatus：Alive status
 * isNewBorn：new born
 * location：location 1-10
 */
public class Bilby
{

    /**
     * Each animal will have a unique identification code,
     * a location,
     * and a status
     */
    private String code;

    private boolean aliveStatus;
    /**
     * Bilby can't reproduce until 5 months after birth
     */
    private boolean isNewBorn;

    private String location;
    /**
     * age > 3 can reproduce
     */
    private int age;

    public Bilby()
    {
        code = "";
        aliveStatus = true;
        // Set it to false the first time when read the file
        isNewBorn = true;
        location = "";
        // Set the age to 3 when read the file.
        age = 0;
    }

    public Bilby(String code, boolean aliveStatus, boolean isNewBorn, String location, int age)
    {
        this.code = code;
        this.aliveStatus = aliveStatus;
        this.isNewBorn = isNewBorn;
        this.location = location;
        this.age = age;
    }

    public String getCode()
    {
        return code;
    }

    public boolean isAliveStatus()
    {
        return aliveStatus;
    }

    public boolean isNewBorn()
    {
        return isNewBorn;
    }

    public String getLocation()
    {
        return location;
    }

    public int getAge()
    {
        return age;
    }



    public void setCode(String code)
    {
        this.code = code;
    }

    public void setAliveStatus(boolean aliveStatus)
    {
        this.aliveStatus = aliveStatus;
    }

    public void setNewBorn(boolean newBorn)
    {
        isNewBorn = newBorn;
    }

    public void setLocation(String location)
    {
        this.location = location;
    }

    public void setAge(int age)
    {
        this.age = age;
    }

    @Override
    public String toString()
    {
        return "Bilby{" + "code='" + code + '\'' + ", aliveStatus=" + aliveStatus + ", isNewBorn=" + isNewBorn + ", location='" + location + '\'' + ", age=" + age + '}';
    }
}
